/*    */ package com.zimbra.cs.account.ldap.entry;
/*    */ 
/*    */ import com.zimbra.common.account.Key.DistributionListBy;
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.account.DistributionList;
/*    */ import com.zimbra.cs.account.Provisioning;
/*    */ import com.zimbra.cs.ldap.LdapException;
/*    */ import com.zimbra.cs.ldap.ZAttributes;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LdapDistributionList
/*    */   extends DistributionList
/*    */   implements LdapEntry
/*    */ {
/*    */   private String mDn;
/*    */   private boolean mIsBasic;
/*    */   
/*    */   public LdapDistributionList(String dn, String email, ZAttributes attrs, boolean isBasic, Provisioning prov)
/*    */     throws LdapException
/*    */   {
/* 39 */     super(email, attrs.getAttrString("zimbraId"), attrs.getAttrs(), prov);
/*    */     
/* 41 */     this.mDn = dn;
/* 42 */     this.mIsBasic = isBasic;
/*    */   }
/*    */   
/*    */   public String getDN() {
/* 46 */     return this.mDn;
/*    */   }
/*    */   
/*    */ 
/*    */   public String[] getAllMembers()
/*    */     throws ServiceException
/*    */   {
/* 53 */     if (this.mIsBasic) {
/* 54 */       DistributionList dl = getProvisioning().get(Key.DistributionListBy.id, getId());
/* 55 */       return dl.getMultiAttr("zimbraMailForwardingAddress");
/*    */     }
/* 57 */     return super.getAllMembers();
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */   public Set<String> getAllMembersSet()
/*    */     throws ServiceException
/*    */   {
/* 65 */     if (this.mIsBasic) {
/* 66 */       DistributionList dl = getProvisioning().get(Key.DistributionListBy.id, getId());
/* 67 */       return dl.getMultiAttrSet("zimbraMailForwardingAddress");
/*    */     }
/* 69 */     return super.getAllMembersSet();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ldap/entry/LdapDistributionList.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */